Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin settings pagination #9119

Merged
merged 10 commits into from
May 30, 2023
Merged

admin settings pagination #9119

merged 10 commits into from
May 30, 2023

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented May 26, 2023

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Follow-ups:

  • Merge both usePagination composables into one and move it to web-pkg
  • Reset pagination (or currentPage - 1) when all items on the last page have been deleted
  • Use constants for the events

@update-docs
Copy link

update-docs bot commented May 26, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@AlexAndBear AlexAndBear marked this pull request as ready for review May 26, 2023 12:48
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 2 issues:

    1. applying a filter (search / groups / roles / etc) should reset the current page to 1
    1. deleting all elements of the last page should set the current page to currentPage - 1

while (2) is probably not happening very often (not a blocker for this PR) I think that (1) is worth fixing before merge.

@ownclouders
Copy link
Contributor

Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/36162/12/1

💥 To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36162/tracing/user-group-assignments-can-be-handled-via-batch-actions-admin-2023-5-30-09-58-35.zip

💥 The e2e-ocis tests pipeline failed. The build has been cancelled.

@sonarcloud
Copy link

sonarcloud bot commented May 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

79.2% 79.2% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@lookacat lookacat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, works like intended 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants